.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;
.source "OrmmaDisplayController.java"


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final TAG:Ljava/lang/String; = "OrmmaDisplayController"


# instance fields
.field private mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

.field private mDensity:F

.field private mMaxHeight:I

.field private mMaxSizeSet:Z

.field private mMaxWidth:I

.field private mWindowManager:Landroid/view/WindowManager;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 34
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/content/Context;)V
    .locals 3
    .parameter "adView"
    .parameter "c"

    .prologue
    const/4 v2, -0x1

    .line 78
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;Landroid/content/Context;)V

    .line 49
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxSizeSet:Z

    .line 54
    iput v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxWidth:I

    .line 59
    iput v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxHeight:I

    .line 79
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 80
    .local v0, metrics:Landroid/util/DisplayMetrics;
    const-string v1, "window"

    invoke-virtual {p2, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/WindowManager;

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mWindowManager:Landroid/view/WindowManager;

    .line 81
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mWindowManager:Landroid/view/WindowManager;

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 82
    iget v1, v0, Landroid/util/DisplayMetrics;->density:F

    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    .line 83
    return-void
.end method

.method private getDeviceDimensions(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)V
    .locals 4
    .parameter "dimensions"

    .prologue
    .line 192
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->notLayoutParams(I)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 193
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    int-to-float v2, v2

    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    .line 195
    :cond_0
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->notLayoutParams(I)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 196
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    int-to-float v2, v2

    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    .line 198
    :cond_1
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    int-to-float v2, v2

    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    .line 199
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    int-to-float v2, v2

    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    .line 200
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    if-gez v2, :cond_2

    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->notLayoutParams(I)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 201
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getHeight()I

    move-result v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    .line 203
    :cond_2
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    if-gez v2, :cond_3

    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->notLayoutParams(I)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 204
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getWidth()I

    move-result v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    .line 206
    :cond_3
    const/4 v2, 0x2

    new-array v0, v2, [I

    .line 207
    .local v0, loc:[I
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v2, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getLocationInWindow([I)V

    .line 208
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    if-gez v2, :cond_4

    .line 209
    const/4 v2, 0x0

    aget v2, v0, v2

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    .line 211
    :cond_4
    iget v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    if-gez v2, :cond_5

    .line 212
    const/4 v1, 0x0

    .line 213
    .local v1, topStuff:I
    const/4 v2, 0x1

    aget v2, v0, v2

    add-int/lit8 v2, v2, 0x0

    iput v2, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    .line 215
    .end local v1           #topStuff:I
    :cond_5
    return-void
.end method

.method private static notLayoutParams(I)Z
    .locals 1
    .parameter "value"

    .prologue
    .line 181
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    if-eq p0, v0, :cond_0

    const/4 v0, -0x1

    if-eq p0, v0, :cond_0

    const/4 v0, -0x2

    if-eq p0, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static overrideDimensions(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;)V
    .locals 3
    .parameter "dimension"
    .parameter "props"

    .prologue
    const/4 v2, -0x1

    .line 218
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 219
    .local v0, fillparentVal:I
    iget v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->height:I

    if-eqz v1, :cond_2

    .line 220
    iget v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->height:I

    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    .line 225
    :cond_0
    :goto_0
    iget v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->width:I

    if-eqz v1, :cond_3

    .line 226
    iget v1, p1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;->width:I

    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    .line 230
    :cond_1
    :goto_1
    return-void

    .line 221
    :cond_2
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    if-ne v1, v2, :cond_0

    .line 222
    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    goto :goto_0

    .line 227
    :cond_3
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    if-ne v1, v2, :cond_1

    .line 228
    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    goto :goto_1
.end method


# virtual methods
.method public close()V
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 275
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "close"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 276
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->close()V

    .line 277
    return-void
.end method

.method public dimensions()Ljava/lang/String;
    .locals 3
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 323
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "{ \"top\" :"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getTop()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ",\"left\" :"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getLeft()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ",\"bottom\" :"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getBottom()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ",\"right\" :"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getRight()I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    div-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public expand(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 13
    .parameter "dimensionsString"
    .parameter "url"
    .parameter "properties"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    const/4 v12, 0x0

    .line 241
    sget-object v7, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v8, "OrmmaDisplayController"

    const-string v9, "expand: dimensions: {0} url: {1} properties: {2}"

    const/4 v10, 0x3

    new-array v10, v10, [Ljava/lang/Object;

    aput-object p1, v10, v12

    const/4 v11, 0x1

    aput-object p2, v10, v11

    const/4 v11, 0x2

    aput-object p3, v10, v11

    invoke-virtual {v7, v8, v9, v10}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 242
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    invoke-direct {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;-><init>()V

    .line 243
    .local v1, dimension:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    iput v12, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    .line 244
    iput v12, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    .line 246
    :try_start_0
    const-string v7, "undefined"

    invoke-virtual {p1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_0

    .line 247
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-class v8, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    invoke-static {v7, v8}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->getFromJSON(Lorg/json/JSONObject;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v7

    move-object v0, v7

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    move-object v1, v0

    .line 249
    :cond_0
    new-instance v4, Lorg/json/JSONObject;

    const-string v7, "#"

    const-string v8, ""

    move-object/from16 v0, p3

    invoke-virtual {v0, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v4, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 250
    .local v4, json2:Lorg/json/JSONObject;
    const/4 v5, 0x0

    .line 252
    .local v5, object:Ljava/lang/Object;
    :try_start_1
    const-string v7, "backgroundColor"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v5

    .line 256
    .end local v5           #object:Ljava/lang/Object;
    :goto_0
    if-eqz v5, :cond_1

    :try_start_2
    instance-of v7, v5, Ljava/lang/String;

    if-eqz v7, :cond_1

    .line 257
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "#"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    check-cast v5, Ljava/lang/String;

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 258
    .local v3, fixedValue:Ljava/lang/String;
    const-string v7, "backgroundColor"

    invoke-virtual {v4, v7, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 260
    .end local v3           #fixedValue:Ljava/lang/String;
    :cond_1
    const-class v7, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;

    invoke-static {v4, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->getFromJSON(Lorg/json/JSONObject;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;

    .line 261
    .local v6, props:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;
    invoke-static {v1, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->overrideDimensions(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;)V

    .line 262
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->getDeviceDimensions(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)V

    .line 263
    iget-object v7, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v7, v1, p2, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->expand(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    .line 268
    .end local v4           #json2:Lorg/json/JSONObject;
    .end local v6           #props:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Properties;
    :goto_1
    return-void

    .line 265
    :catch_0
    move-exception v2

    .line 266
    .local v2, e:Ljava/lang/Exception;
    sget-object v7, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v8, "OrmmaDisplayController"

    invoke-virtual {v7, v8, v2}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_1

    .line 254
    .end local v2           #e:Ljava/lang/Exception;
    .restart local v4       #json2:Lorg/json/JSONObject;
    .restart local v5       #object:Ljava/lang/Object;
    :catch_1
    move-exception v7

    goto :goto_0
.end method

.method public getMaxSize()Ljava/lang/String;
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 386
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxSizeSet:Z

    if-eqz v0, :cond_0

    .line 387
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "{ width: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxWidth:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", height: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxHeight:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 389
    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->getScreenSize()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getOrientation()I
    .locals 8
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 335
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mWindowManager:Landroid/view/WindowManager;

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Display;->getOrientation()I

    move-result v0

    .line 336
    .local v0, orientation:I
    const/4 v1, -0x1

    .line 337
    .local v1, ret:I
    packed-switch v0, :pswitch_data_0

    .line 352
    :goto_0
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "OrmmaDisplayController"

    const-string v4, "getOrientation: {0}"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 353
    return v1

    .line 339
    :pswitch_0
    const/4 v1, 0x0

    .line 340
    goto :goto_0

    .line 342
    :pswitch_1
    const/16 v1, 0x5a

    .line 343
    goto :goto_0

    .line 345
    :pswitch_2
    const/16 v1, 0xb4

    .line 346
    goto :goto_0

    .line 348
    :pswitch_3
    const/16 v1, 0x10e

    .line 349
    goto :goto_0

    .line 337
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public getScreenSize()Ljava/lang/String;
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 363
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 364
    .local v0, metrics:Landroid/util/DisplayMetrics;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mWindowManager:Landroid/view/WindowManager;

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 365
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "{ width: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    int-to-float v2, v2

    iget v3, v0, Landroid/util/DisplayMetrics;->density:F

    div-float/2addr v2, v3

    float-to-int v2, v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", height: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    int-to-float v2, v2

    iget v3, v0, Landroid/util/DisplayMetrics;->density:F

    div-float/2addr v2, v3

    float-to-int v2, v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "}"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public getSize()Ljava/lang/String;
    .locals 1
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 376
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->getSize()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public hide()V
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 284
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "hide"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 285
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->hide()V

    .line 286
    return-void
.end method

.method public isViewable()Z
    .locals 1
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 313
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->isShown()Z

    move-result v0

    return v0
.end method

.method public logHTML(Ljava/lang/String;)V
    .locals 3
    .parameter "html"

    .prologue
    .line 422
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v0, v1, p1, v2}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 423
    return-void
.end method

.method public onOrientationChanged(I)V
    .locals 4
    .parameter "orientation"

    .prologue
    .line 411
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "window.ormmaview.fireChangeEvent({ orientation: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "});"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 412
    .local v0, script:Ljava/lang/String;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaDisplayController"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v0, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 413
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->injectJavaScript(Ljava/lang/String;)V

    .line 414
    return-void
.end method

.method public open(Ljava/lang/String;ZZZ)V
    .locals 6
    .parameter "url"
    .parameter "back"
    .parameter "forward"
    .parameter "refresh"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 112
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "open: url: {0} back: {1} forward: {2} refresh: {3}"

    const/4 v3, 0x4

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    const/4 v4, 0x1

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x2

    invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x3

    invoke-static {p4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 113
    invoke-static {p1}, Landroid/webkit/URLUtil;->isValidUrl(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 114
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    const-string v1, "Invalid url"

    const-string v2, "open"

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->raiseError(Ljava/lang/String;Ljava/lang/String;)V

    .line 118
    :goto_0
    return-void

    .line 116
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->open(Ljava/lang/String;ZZZ)V

    goto :goto_0
.end method

.method public playAudio(Ljava/lang/String;ZZZZLjava/lang/String;Ljava/lang/String;)V
    .locals 8
    .parameter "url"
    .parameter "autoPlay"
    .parameter "controls"
    .parameter "loop"
    .parameter "position"
    .parameter "startStyle"
    .parameter "stopStyle"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 134
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "playAudio: url: {0} autoPlay: {1} controls: {2} loop: {3} position: {4} startStyle: {5} stopStyle: {6}"

    const/4 v3, 0x7

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    const/4 v4, 0x1

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x2

    invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x3

    invoke-static {p4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x4

    invoke-static {p5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x5

    aput-object p6, v3, v4

    const/4 v4, 0x6

    aput-object p7, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 137
    invoke-static {p1}, Landroid/webkit/URLUtil;->isValidUrl(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 138
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    const-string v1, "Invalid url"

    const-string v2, "playAudio"

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->raiseError(Ljava/lang/String;Ljava/lang/String;)V

    .line 142
    :goto_0
    return-void

    .line 140
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    move-object v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    move v5, p5

    move-object v6, p6

    move-object v7, p7

    invoke-virtual/range {v0 .. v7}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->playAudio(Ljava/lang/String;ZZZZLjava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public playVideo(Ljava/lang/String;ZZZZ[ILjava/lang/String;Ljava/lang/String;)V
    .locals 9
    .parameter "url"
    .parameter "audioMuted"
    .parameter "autoPlay"
    .parameter "controls"
    .parameter "loop"
    .parameter "position"
    .parameter "startStyle"
    .parameter "stopStyle"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 159
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "playVideo: url: {0} audioMuted: {1} autoPlay: {2} controls: {3} loop: {4} x: {5} y: {6} width: {7} height: {8} startStyle: {9} stopStyle: {10}"

    const/16 v3, 0xb

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    const/4 v4, 0x1

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x2

    invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x3

    invoke-static {p4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x4

    invoke-static {p5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x5

    const/4 v5, 0x0

    aget v5, p6, v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x6

    const/4 v5, 0x1

    aget v5, p6, v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x7

    const/4 v5, 0x2

    aget v5, p6, v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/16 v4, 0x8

    const/4 v5, 0x3

    aget v5, p6, v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/16 v4, 0x9

    aput-object p7, v3, v4

    const/16 v4, 0xa

    aput-object p8, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 164
    const/4 v6, 0x0

    .line 165
    .local v6, dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    const/4 v0, 0x0

    aget v0, p6, v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 166
    new-instance v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;

    .end local v6           #dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    invoke-direct {v6}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;-><init>()V

    .line 167
    .restart local v6       #dimensions:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;
    const/4 v0, 0x0

    aget v0, p6, v0

    iput v0, v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->x:I

    .line 168
    const/4 v0, 0x1

    aget v0, p6, v0

    iput v0, v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->y:I

    .line 169
    const/4 v0, 0x2

    aget v0, p6, v0

    iput v0, v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->width:I

    .line 170
    const/4 v0, 0x3

    aget v0, p6, v0

    iput v0, v6, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;->height:I

    .line 171
    invoke-direct {p0, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->getDeviceDimensions(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;)V

    .line 173
    :cond_0
    invoke-static {p1}, Landroid/webkit/URLUtil;->isValidUrl(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 174
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    const-string v1, "Invalid url"

    const-string v2, "playVideo"

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->raiseError(Ljava/lang/String;Ljava/lang/String;)V

    .line 178
    :goto_0
    return-void

    .line 176
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    move-object v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    move v5, p5

    move-object/from16 v7, p7

    move-object/from16 v8, p8

    invoke-virtual/range {v0 .. v8}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->playVideo(Ljava/lang/String;ZZZZLcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaController$Dimensions;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public resize(II)V
    .locals 6
    .parameter "width"
    .parameter "height"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 93
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "resize: width: {0} height: {1}"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x1

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 94
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxHeight:I

    if-lez v0, :cond_0

    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxHeight:I

    if-gt p2, v0, :cond_1

    :cond_0
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxWidth:I

    if-lez v0, :cond_2

    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxWidth:I

    if-le p1, v0, :cond_2

    .line 95
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    const-string v1, "Maximum size exceeded"

    const-string v2, "resize"

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->raiseError(Ljava/lang/String;Ljava/lang/String;)V

    .line 100
    :goto_0
    return-void

    .line 97
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    int-to-float v2, p1

    mul-float/2addr v1, v2

    float-to-int v1, v1

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mDensity:F

    int-to-float v3, p2

    mul-float/2addr v2, v3

    float-to-int v2, v2

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->resize(II)V

    goto :goto_0
.end method

.method public setMaxSize(II)V
    .locals 1
    .parameter "w"
    .parameter "h"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 400
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxSizeSet:Z

    .line 401
    iput p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxWidth:I

    .line 402
    iput p2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mMaxHeight:I

    .line 403
    return-void
.end method

.method public show()V
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 293
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "OrmmaDisplayController"

    const-string v2, "show"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 294
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mOrmmaView:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaView;->show()V

    .line 295
    return-void
.end method

.method public startConfigurationListener()V
    .locals 5

    .prologue
    .line 453
    :try_start_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    if-nez v1, :cond_0

    .line 454
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    .line 456
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    new-instance v3, Landroid/content/IntentFilter;

    const-string v4, "android.intent.action.CONFIGURATION_CHANGED"

    invoke-direct {v3, v4}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 461
    :goto_0
    return-void

    .line 458
    :catch_0
    move-exception v0

    .line 459
    .local v0, e:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaDisplayController"

    invoke-virtual {v1, v2, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public stopAllListeners()V
    .locals 1

    .prologue
    .line 427
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->stopConfigurationListener()V

    .line 428
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    .line 429
    return-void
.end method

.method public stopConfigurationListener()V
    .locals 3

    .prologue
    .line 436
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    if-eqz v1, :cond_0

    .line 438
    :try_start_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;

    invoke-virtual {v1, v2}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 439
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->mBroadCastReceiver:Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/util/OrmmaConfigurationBroadcastReceiver;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 445
    :cond_0
    :goto_0
    return-void

    .line 441
    :catch_0
    move-exception v0

    .line 442
    .local v0, e:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ormma/OrmmaDisplayController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "OrmmaDisplayController"

    invoke-virtual {v1, v2, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method
